import request from '@/utils/request'

// 获取所有收藏
export const getListApi = params => {
  return request({
    url: '/knowledgeAdmin/xtyhsc/list',
    method: 'get',
    params,
  })
}

// 添加收藏
export const addScApi = id => {
  return request({
    url: `/knowledgeAdmin/xtyhsc/addCollection/${id}`,
    method: 'post',
  })
}

// 删除收藏
export const deleteScApi = ids => {
  return request({
    url: `/knowledgeAdmin/xtyhsc/removeCollection`,
    method: 'delete',
    data: ids,
  })
}
